<?php /* Smarty version Smarty-3.1.14, created on 2017-08-17 09:16:22
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\update.html" */ ?>
<?php /*%%SmartyHeaderCode:150945994ee6631b405-18425157%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6b2e55b4a3c71db210cd468f2265b943ed521a73' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\update.html',
      1 => 1501207492,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '150945994ee6631b405-18425157',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'name' => 0,
    'area' => 0,
    'k' => 0,
    'address' => 0,
    'logo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5994ee6637dc11_55556937',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5994ee6637dc11_55556937')) {function content_5994ee6637dc11_55556937($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
input {	width: 350px;}
textarea {	width: 350px;	height: 100px;}
    .mark{
        width: 100px;
        height: 100px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0px 0px 10px 0px #ccc;
    }
    .mark img{
        width: 100%;
    }
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>网站信息设置</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1" action="" enctype="multipart/form-data">
    <table cellpadding="0" cellspacing="0" align="center" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 网站名称:</td>
          <td><input name="shop_name" type="text" id="web_name" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_name'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_name'];?>
" required/></td>
        </tr>
        <tr>
          <td class="firtd"> 关键词设置:</td>
          <td><input name="shop_keywords" type="text" id="web_keywords" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_keywords'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_keywords'];?>
" required/></td>
        </tr>
        <tr>
          <td class="firtd"> 网站描述:</td>
          <td><input name="shop_desc" type="text" id="web_service" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_desc'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_desc'];?>
" required/></td>
        </tr>
        <tr>
          <td class="firtd"> 所在国家:</td>
          <td>
            <select onchange="get_diqu('country','province')" name="shop_country" id="country">
              <option value="0">=请选择=</option>
                <?php  $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['k']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['area']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['k']->key => $_smarty_tpl->tpl_vars['k']->value){
$_smarty_tpl->tpl_vars['k']->_loop = true;
?>
                <?php if ($_smarty_tpl->tpl_vars['k']->value['parent_id']==0){?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['k']->value['region_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['k']->value['region_id']==$_smarty_tpl->tpl_vars['address']->value['country']['store_range']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['k']->value['region_name'];?>
</option>
                <?php }?>
                <?php } ?>
            </select>
          </td>
        </tr>
        <tr>
          <td class="firtd"> 所在省份:</td>
          <td>
            <select onchange="get_diqu('province','city')" id="province" name="shop_province">
              <option value="0">=请选择=</option>
                <?php  $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['k']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['area']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['k']->key => $_smarty_tpl->tpl_vars['k']->value){
$_smarty_tpl->tpl_vars['k']->_loop = true;
?>
                <?php if ($_smarty_tpl->tpl_vars['k']->value['parent_id']==1){?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['k']->value['region_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['k']->value['region_id']==$_smarty_tpl->tpl_vars['address']->value['province']['store_range']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['k']->value['region_name'];?>
</option>
                <?php }?>
                <?php } ?>
            </select>
          </td>
        </tr>
        <tr>
          <td class="firtd"> 所在城市:</td>
          <td>
            <select id="city" name="shop_city">
              <option value="0">=请选择=</option>
                <?php  $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['k']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['area']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['k']->key => $_smarty_tpl->tpl_vars['k']->value){
$_smarty_tpl->tpl_vars['k']->_loop = true;
?>
                <?php if ($_smarty_tpl->tpl_vars['k']->value['parent_id']==$_smarty_tpl->tpl_vars['address']->value['province']['store_range']){?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['k']->value['region_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['k']->value['region_id']==$_smarty_tpl->tpl_vars['address']->value['city']['store_range']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['k']->value['region_name'];?>
</option>
                <?php }?>
                <?php } ?>
            </select>
          </td>
        </tr>
        <tr>
          <td class="firtd"> 详细地址:</td>
          <td><input name="shop_address" type="text" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_address'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_address'];?>
" required/></td>
        </tr>
        <tr>
          <td class="firtd"> 网站LOGO:</td>
          <td><input type="file" name="shop_logo" onchange="getImgURL(this)"/></td>
        </tr>
        <tr>
            <td class="firtd">
                当前LOGO:
            </td>
            <td>
                <div class="mark">
                    <img data-src="<?php echo $_smarty_tpl->tpl_vars['logo']->value;?>
" src="" alt="">
                </div>
            </td>
        </tr>
        <tr>
          <td class="firtd"> 客服QQ:</td>
          <td><input name="qq" type="text" id="qq" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['qq'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['qq'];?>
"/></td>
        </tr>
        <tr>
          <td class="firtd"> 客服电话:</td>
          <td><input name="service_phone" type="text" id="service_phone" value="<?php echo $_smarty_tpl->tpl_vars['name']->value['service_phone'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['service_phone'];?>
"/></td>
        </tr>
        <tr>
          <td valign="top" class="firtd"> 用户公告:</td>
          <td><textarea name="user_notice" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['user_notice'];?>
"><?php echo $_smarty_tpl->tpl_vars['name']->value['user_notice'];?>
</textarea></td>
        </tr>
        <tr>
          <td valign="top" class="firtd"> 网店公告:</td>
          <td><textarea name="shop_notice" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_notice'];?>
"><?php echo $_smarty_tpl->tpl_vars['name']->value['shop_notice'];?>
</textarea></td>
        </tr>
        <tr>
          <td valign="top" class="firtd"> 暂时关闭:</td>
          <td>
            <input style="width: 50px;vertical-align: bottom;" type="radio" name="shop_closed" checked>
            <label for="shop_reg_closed">是</label>
            <input style="width: 50px;vertical-align: bottom;" type="radio" name="shop_closed" >
            <label for="shop_reg_closed">否</label>
          </td>
        </tr>
        <tr>
          <td valign="top" class="firtd"> 关闭说明:</td>
          <td><textarea name="close_comment" placeholder="<?php echo $_smarty_tpl->tpl_vars['name']->value['shop_desc'];?>
"><?php echo $_smarty_tpl->tpl_vars['name']->value['close_comment'];?>
</textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><a href="JavaScript:void(0);" class="btn" onclick="$('#submit').click()"><span>确认提交</span></a></td>
          <input type="submit" id="submit" hidden>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<script>
    $(".mark img").attr('src','../'+$(".mark img").data().src);
    function getImgURL(node) {
        var imgURL = "";
        try{
            var file = null;
            if(node.files && node.files[0] ){
                file = node.files[0];
            }else if(node.files && node.files.item(0)) {
                file = node.files.item(0);
            }
            //Firefox 因安全性问题已无法直接通过input[file].value 获取完整的文件路径
            try{
                //Firefox7.0
                imgURL =  file.getAsDataURL();
            }catch(e){
                //Firefox8.0以上
                imgRUL = window.URL.createObjectURL(file);
            }
        }catch(e){
            //支持html5的浏览器,比如高版本的firefox、chrome、ie10
            if (node.files && node.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    imgURL = e.target.result;
                };
                reader.readAsDataURL(node.files[0]);
            }
        }
        //imgurl = imgURL;
        creatImg(imgRUL);
        return imgURL;
    }
    function creatImg(imgRUL){
        var textHtml = "<img src='"+imgRUL+"'/>";
        $(".mark").html(textHtml);
    }
</script>
</body>
</html><?php }} ?>